import { createRouter,createWebHistory } from 'vue-router'

const routes = [
    //主页
    {
        path: '/admin/login',
        name: '登录',
        component: () =>
            import('@/pages/login')
    },
    {
        path: '/admin/index',
        name: '主页',
        component: () =>
            import('@/views/admin/Index.vue')
    }
];
const router = createRouter({
    // 页面刷新白屏问题
    history: createWebHistory(),
    // base: process.env.BASE_URL,
    routes
})


export default router

